package com.igelato.controller.User;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
public class UserSearchDto implements Serializable {

    @ApiModelProperty("页码")
    Integer page_num = 1;

    @ApiModelProperty("每页多少条数据")
    Integer page_size = 10;

    private Integer id;

    @ApiModelProperty("微信的openid，为了兼容支付宝小程序、app等，所以openid可以为空。")
    private String openid;

    @ApiModelProperty("由于这里的手机号是从微信上获取到的，所以不确定有多少个字节，所有类型使用varchar。并且用户在小程序上登录也不用手机号，所以就没给它加唯一索引。")
    private String mobile;

    private String nickname;

    private String avatar;

    @ApiModelProperty("用户余额")
    private Integer amount;

    @ApiModelProperty("积分")
    private Integer bonus_points;

    private LocalDate birthday;

    @ApiModelProperty("1：男；2：女；")
    private Integer gender;

    @ApiModelProperty("1：正常；-1：已冻结；-99：已注销；")
    private Integer status;

    private LocalDateTime from_date;

    private LocalDateTime to_date;
}
